Setting HTML Format Preferences

You can set the following preferences for formatting HTML source code in Dreamweaver:

HTML Rewriting preferences determine what changes, if any, Dreamweaver makes to your HTML source code when you open an HTML document. See HTML Rewriting preferences.
HTML Format preferences determine common HTML formatting options, such as line length and indentation. See HTML Format preferences. These preferences provide a user interface for changing the SourceFormat.txt file.
HTML Colors preferences control how HTML tags (and the text between them) are color coded in the HTML Source inspector. See HTML Colors preferences.
Fonts/Encoding preferences let you specify the font in which your HTML source code appears in the HTML Source inspector. See Fonts/Encoding preferences.

Finally, the SourceFormat.txt file (in the Dreamweaver/Configuration folder) provides precise specifications for formatting HTML. Editing this file in a text editor gives you the greatest degree of control over exactly how Dreamweaver writes HTML; you can change certain tag-specific options in this file that you can't change using the HTML Format preferences. However, it is recommended that only advanced Dreamweaver users and developers attempt to edit this file, as the potential for causing serious errors to your Dreamweaver program is great. See Editing the HTML source formatting profile.